package cn.wolfcode.car.service;

import cn.wolfcode.car.domain.Permission;
import cn.wolfcode.car.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void save(Permission permission);
    void delete(Long id);
    void update(Permission permission);
    Permission get(Long id);
    List<Permission> listAll();
    // 分页查询的方法
    PageInfo<Permission> query(QueryObject qo);

    void reload();

    List<Permission> queryByPermission(Long employeeId);

    List<String> queryByExpression(Long employeeId);
}
